#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    int i = 0, arr[3] = { 0 }, max = 0;
    for (i = 0; i < 3; i++)
    {
        scanf("%d ", &arr[i]);
    }
    for (i = 1; i <= 3; i++)
    {
        if (arr[i - 1] > arr[i])
        {
            int tmp = arr[i];
            arr[i] = arr[i - 1];
            arr[i - 1] = arr[i];
        }
    }
    printf("%d", arr[2]);
    return 0;;
}
